<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>社聚共享后台管理系统</title>
    <#include "/view/admin/head.html"/>


    <style type="text/css">
        html,body {
            height: 100%;
        }
        .box {
            /*filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#6699FF', endColorstr='#6699FF'); !*  IE *!*/
            /*background-image:linear-gradient(bottom, #6699FF 0%, #6699FF 100%);*/
            /*background-image:-o-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);*/
            /*background-image:-moz-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);*/
            /*background-image:-webkit-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);*/
            /*background-image:-ms-linear-gradient(bottom, #6699FF 0%, #6699FF 100%);*/
            background-image:URL(${base}/jstool/login_bk.jpg);

            margin: 0 auto;
            position: relative;
            width: 100%;
            height: 100%;
        }
        .login-box {
            width: 100%;
            max-width:500px;
            height: 400px;
            position: absolute;
            top: 50%;

            margin-top: -200px;
            /*设置负值，为要定位子盒子的一半高度*/

        }
        @media screen and (min-width:500px){
            .login-box {
                left: 50%;
                /*设置负值，为要定位子盒子的一半宽度*/
                margin-left: -250px;
            }
        }

        .form {
            width: 100%;
            max-width:500px;
            height: 275px;
            margin: 25px auto 0px auto;
            padding-top: 25px;

        }
        .login-content {
            <#if msg??>
            <#if viewVcode??> height: 446px;
            <#else> height: 352px;
            </#if>
            <#else>
            <#if viewVcode??> 352px;
            <#else> height: 300px;
            </#if>
            </#if>

            width: 100%;
            max-width:500px;
            background-color: rgba(255, 250, 2550, .6);
            float: left;
            border: 1px solid rgba(0,0,0,.2);
            border-radius:0px 0px 12px 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,.5);
        }


        .input-group {
            margin: 0px 70px 40px 70px !important;
        }
        .form-control,
        .input-group {
            height: 40px;
        }

        .form-group {
            margin-bottom: 0px !important;
        }
        .login-title {
            padding: 20px 10px;
            background-color: rgba(0, 0, 0, .8);
            border: 1px solid rgba(0,0,0,.2);
            border-radius:12px 12px 0px 0px;

        }
        .login-title h1 {
            margin-top: 10px !important;
        }
        .login-title small {
            color: #fff;
        }

        .link p {
            line-height: 20px;
            margin-top: 30px;
        }
        .btn-sm {
            padding: 8px 24px !important;
            font-size: 16px !important;
        }
    </style>
    <script type="text/javascript">

        $(function(){

            $('.close').click(function(){
                $('.login-content').css("height",$('.login-content').height()-52);
            });
            $('#kaptchaImage').click(function() {
                $(this).hide().attr('src',
                    '${base}/Kaptcha.jpg?' + Math.floor(Math.random() * 100)).fadeIn();
            });

        });


    </script>

</head>

<body>
<div class="box">
    <div class="login-box">
        <div class="login-title text-center">
            <h1><small>社聚共享后台管理系统</small></h1>
        </div>
        <div class="login-content ">
            <div class="form">
                <#if msg??>
                    <div class="alert alert-error" style="background-color: #f2dede;color: #a94442;">
                        <a class="close" data-dismiss="alert">×</a>
                        ${msg!}
                    </div>
                </#if>


                <form action="${base}/admin/login.do" method="post">
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                <input type="text" id="username" name="username" class="form-control" placeholder="用户名">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                <input type="password" id="password" name="password" class="form-control" placeholder="密码">
                            </div>
                        </div>
                    </div>
                   <#if viewVcode??>
                    <div class="form-group">
                        <div class="col-xs-12  ">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-info-sign"></span></span>
                                <input type="text" id="vcode" name="vcode" class="form-control" placeholder="验证码" style="height:54px;">
                                <span class="input-group-addon">
                                    <img src="${base}/Kaptcha.jpg" id="kaptchaImage" />
                                </span>
                            </div>
                        </div>
                    </div>
                   </#if>
                    <div class="form-group form-actions">
                        <div class="col-xs-4 col-xs-offset-4 ">
                            <button type="submit" class="btn btn-sm btn-info"><span class="glyphicon glyphicon-off"></span> 登录</button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-6 link">
                            <p class="text-center remove-margin"><small></small> </a>
                            </p>
                        </div>
                        <div class="col-xs-6 link">
                            <p class="text-center remove-margin"><small></small> </a>
                            </p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!--<div style="text-align:center;">
    <p>来源：<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>-->

</body>

</html>